﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUserRole.aspx.cs" Inherits="Admin_UserManagement_AddUserRole" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<HTML>
	<HEAD>
	<title>添加用户</title>
		<link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<style type="text/css">BODY { MARGIN-TOP: 0px; SCROLLBAR-FACE-COLOR: #799ae1; FONT-SIZE: 12px; BACKGROUND: #cad7f7; SCROLLBAR-HIGHLIGHT-COLOR: #799ae1; SCROLLBAR-SHADOW-COLOR: #799ae1; SCROLLBAR-3DLIGHT-COLOR: #799ae1; SCROLLBAR-ARROW-COLOR: #ffffff; SCROLLBAR-TRACK-COLOR: #aabfec; SCROLLBAR-DARKSHADOW-COLOR: #799ae1 }
	TD { FONT-SIZE: 12px }
	INPUT { BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px }
	TEXTAREA { BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px }
	SELECT { BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 12px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px }
	SPAN { FONT-SIZE: 12px; POSITION: static }
	A { COLOR: #000000; TEXT-DECORATION: none }
	A:hover { COLOR: #428eff; TEXT-DECORATION: underline }
	A.highlight { COLOR: red; TEXT-DECORATION: none }
	A.highlight:hover { COLOR: red }
	A.thisclass { FONT-WEIGHT: bold; TEXT-DECORATION: none }
	A.thisclass:hover { FONT-WEIGHT: bold }
	A.navlink { COLOR: #000000; TEXT-DECORATION: none }
	A.navlink:hover { COLOR: #003399; TEXT-DECORATION: none }
	.twidth { WIDTH: 760px }
	.content { FONT-SIZE: 14px; MARGIN: 5px 20px; LINE-HEIGHT: 140%; FONT-FAMILY: Tahoma,宋体 }
	.aTitle { FONT-WEIGHT: bold; FONT-SIZE: 15px }
	TD.forumHeaderBackgroundAlternate { BACKGROUND-IMAGE: url(images/admin_top_bg.gif); COLOR: #000000; BACKGROUND-COLOR: #799ae1 }
	#TableTitleLink A:link { COLOR: #ffffff; TEXT-DECORATION: none }
	#TableTitleLink A:visited { COLOR: #ffffff; TEXT-DECORATION: none }
	#TableTitleLink A:active { COLOR: #ffffff; TEXT-DECORATION: none }
	#TableTitleLink A:hover { COLOR: #ffffff; TEXT-DECORATION: underline }
	TD.forumRow { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: #f1f3f5; PADDING-BOTTOM: 3px; PADDING-TOP: 3px }
	TH { FONT-WEIGHT: bold; FONT-SIZE: 12px; BACKGROUND-IMAGE: url(images/admin_bg_1.gif); COLOR: white; BACKGROUND-COLOR: #4455aa }
	TD.bodytitle { BACKGROUND-IMAGE: url(images/admin_bg_2.gif) }
	TD.bodytitle1 { BACKGROUND-IMAGE: url(images/admin_bg_3.gif) }
	TD.tablebody1 { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: #bebbdb; PADDING-BOTTOM: 3px; PADDING-TOP: 3px }
	TD.forumRowHighlight { PADDING-RIGHT: 3px; PADDING-LEFT: 3px; BACKGROUND: #e4edf9; PADDING-BOTTOM: 3px; PADDING-TOP: 3px }
	.tableBorder { BORDER-RIGHT: #183789 1px solid; BORDER-TOP: #183789 1px solid; BORDER-LEFT: #183789 1px solid; WIDTH: 82%; BORDER-BOTTOM: #183789 1px solid; BACKGROUND-COLOR: #ffffff }
	.tableBorder1 { WIDTH: 98% }
	.helplink { FONT: 10px verdana,arial,helvetica,sans-serif; CURSOR: help; TEXT-DECORATION: none }
	.copyright { PADDING-RIGHT: 1px; BORDER-TOP: #6595d6 1px dashed; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; FONT: 11px verdana,arial,helvetica,sans-serif; COLOR: #4455aa; PADDING-TOP: 1px; TEXT-DECORATION: none }
	.menuskin { BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; BACKGROUND-IMAGE: url(../skins/default/dvmenubg3.gif); VISIBILITY: hidden; FONT: 12px Verdana; BORDER-LEFT: #666666 1px solid; BORDER-BOTTOM: #666666 1px solid; BACKGROUND-REPEAT: repeat-y; POSITION: absolute; BACKGROUND-COLOR: #efefef }
	.menuskin A { PADDING-RIGHT: 10px; PADDING-LEFT: 25px; BEHAVIOR: url(inc/noline.htc); COLOR: black; TEXT-DECORATION: none }
	#mouseoverstyle { BORDER-RIGHT: #597db5 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #597db5 1px solid; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 2px; BORDER-LEFT: #597db5 1px solid; PADDING-TOP: 0px; BORDER-BOTTOM: #597db5 1px solid; BACKGROUND-COLOR: #c9d5e7 }
	#mouseoverstyle A { COLOR: black }
	.menuitems { PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; MARGIN: 2px; WORD-BREAK: keep-all; PADDING-TOP: 1px }
		    .style1
            {
                height: 37px;
            }
		    .style2
            {
                width: 60%;
                border:1px;
                font-size:14px;
            }
		    .style3
            {
                height: 32px;
            }
		</style>
	
	</HEAD>
	<body><form id="Form1" name="Form1" method="post" runat="server">
			
			<br>
			<table class="tableBorder" id="table2" height="200" cellSpacing="1" cellPadding="3" align="center"	border="0">
				<tr>
                    <th align="left" style="font-weight: bold; font-size: 20px; background-image: url('images/admin_bg_1.gif');
                        color: white; background-color: #4455aa" class="style1">
						<p align="center">
                 添加用户</p>
                    </th>
				</tr>
				<tr>
                    <td class="Forumrow" style="text-align: center">
                        <table align="center" class="style2" border="1">
                            <tr>
                                <td align="center" >
                                    用户名 ：</td>
                                <td>
                                    <asp:TextBox ID="txtName" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                    <span style="color:Red">(必填项)</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="txtName" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    姓名：</td>
                                <td>
                                    <asp:TextBox ID="txtUserName" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                    <span style="color:Red">(必填项)</span><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                        ControlToValidate="txtUserName" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center" class="style3">
                                            性别：</td>
                                <td class="style3">
                                            <asp:RadioButtonList ID="rdoSex" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Value="男" Selected="True">男</asp:ListItem>
                                                <asp:ListItem Value="女">女</asp:ListItem>
                                            </asp:RadioButtonList>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    部门：</td>
                                <td>
                                    <asp:TextBox ID="txtDepartment" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    成本中心：</td>
                                <td>
                                    <asp:TextBox ID="txtCostCenters" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    身份证号：</td>
                                <td>
                                    <asp:TextBox ID="txtUserIDCard" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    年龄：</td>
                                <td>
                                    <asp:TextBox ID="txtUserAge" runat="server" MaxLength="100" Width="200px"></asp:TextBox>
                                    <span style="color:Red">(必填项)</span><asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                                        ControlToValidate="txtUserAge" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                                                ControlToValidate="txtUserAge" ErrorMessage="*" 
                                                ValidationExpression="^(?:120|[1-9][0-9]?|1[01][0-9])$">格式不正确</asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    婚否：</td>
                                <td>
                                            <asp:RadioButtonList ID="rdoMarriage" runat="server" 
                                        RepeatDirection="Horizontal">
                                                <asp:ListItem Value="未婚" Selected="True">未婚</asp:ListItem>
                                                <asp:ListItem Value="已婚">已婚</asp:ListItem>
                                            </asp:RadioButtonList>
                                </td>
                            </tr>
                            
                            <tr>
                                        <td align="right">
                                            手机号码：</td>
                                        <td>
                                            <asp:TextBox ID="txtPhoneNumber" runat="server" Width="200px" MaxLength="11"></asp:TextBox>
                                            <span style="color:Red">(必填项)</span><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="txtPhoneNumber" ErrorMessage="*">不能为空</asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                ControlToValidate="txtPhoneNumber" ErrorMessage="*" 
                                                ValidationExpression="^(13[0-9]|15[0-9]|18[6|8|9])\d{8}$">格式不正确</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                            <tr>
                                        <td align="right">
                                            固定电话：</td>
                                        <td>
                                            <asp:TextBox ID="txtTelephone" runat="server" Width="200px" MaxLength="50"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                                                ControlToValidate="txtTelephone" ErrorMessage="*" 
                                                ValidationExpression="(^(\d{3,4}-)?\d{7,8})">格式不正确</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                            <tr>
                                        <td align="right">
                                            联系地址：</td>
                                        <td>
                                            <asp:TextBox ID="txtAddress" runat="server" Width="200px" MaxLength="100"></asp:TextBox>
                                        </td>
                                    </tr>
                            <tr>
                                        <td align="right">
                                            电子邮箱：</td>
                                        <td>
                                            <asp:TextBox ID="txtUserEmai" runat="server" Width="200px" MaxLength="50"></asp:TextBox>
                                            <span style="color:Red">(必填项)</span><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="txtUserEmai" ErrorMessage="*">不能为空</asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                ControlToValidate="txtUserEmai" ErrorMessage="*" 
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">格式不正确</asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                            
                            <tr>
                                <td align="center">
                                    地区属性：</td>
                                <td>
                                            <asp:TextBox ID="txtArea" runat="server" Width="200px" MaxLength="50"></asp:TextBox>
                                            </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    语言：</td>
                                <td>
                                            <asp:RadioButtonList ID="rdoLang" runat="server" 
                                        RepeatDirection="Horizontal">
                                                <asp:ListItem Value="中文" Selected="True">中文</asp:ListItem>
                                                <asp:ListItem Value="English">English</asp:ListItem>
                                            </asp:RadioButtonList>
                                            </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    VIP：</td>
                                <td>
                                            <asp:RadioButtonList ID="rdoVIP" runat="server" 
                                        RepeatDirection="Horizontal">
                                                <asp:ListItem Value="0" Selected="True">否</asp:ListItem>
                                                <asp:ListItem Value="1">是</asp:ListItem>
                                            </asp:RadioButtonList>
                                            </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    是否家属：</td>
                                <td>
                                            <asp:RadioButtonList ID="rdoUser" runat="server" 
                                        RepeatDirection="Horizontal">
                                                <asp:ListItem Value="否" Selected="True">否</asp:ListItem>
                                                <asp:ListItem Value="是">是</asp:ListItem>
                                            </asp:RadioButtonList>
                                            </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    使用角色：</td>
                                <td>
                                            <asp:RadioButtonList ID="rdologinType" runat="server" 
                                        RepeatDirection="Horizontal">
                                                <asp:ListItem Value="0" Selected="True">用户</asp:ListItem>
                                                <asp:ListItem Value="1">客服</asp:ListItem>
                                            </asp:RadioButtonList>
                                            </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    备注：</td>
                                <td>
                                    <asp:TextBox ID="txtRemark" runat="server" MaxLength="100" Width="370px" Height="82px"></asp:TextBox>
                                            </td>
                            </tr>
                            
                            <tr>
                                <td align="center">
                                    用户角色：</td>
                                <td>
                                    <asp:CheckBoxList ID="cbRole" runat="server" RepeatColumns="6" 
                                        RepeatDirection="Horizontal">
                                    </asp:CheckBoxList>
                                </td>
                            </tr>
                            
                            </table>
                    </td>
				</tr>
				
			                   
			
			
			
			</table>
			<BR>
			<TABLE id="table1" cellSpacing="1" cellPadding="3" align="center" border="0">
				<TR>
					<TD align="center" style="width: 114px">
						<asp:button id="btnEdit" runat="server" Text="新增" Width="60px" onclick="btnEdit_Click" 
                            ></asp:button></TD>
				
				<td style="width: 130px">
                    <input type="button"  onclick ="javacript:window.location.href='ProfileUsers.aspx';" value="取消" /></td></tr>
			</TABLE>
            <BR>
		</form>
	</body>
</HTML>


